package com.zpark.controller;

import com.zpark.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 用户控制层接口
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/reg.do")
    public ModelAndView reg(User user){
        ModelAndView view = new ModelAndView();
        view.addObject("user", user);
        view.setViewName("main");

        return view;
    }
}
